body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
}

#root {
  width: 100%;
  height: 100%;
}

.ant-layout {
  min-height: 100vh !important;
  width: 100vw;
  overflow-y: auto;
}

/* 确保内容占满全屏 */
.ant-layout-content {
  padding: 24px !important;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 调整卡片间距 */
.ant-card {
  margin-bottom: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ant-layout-content {
    padding: 16px !important;
  }
}

/* 暗黑模式下的 message 样式 */
[data-theme="dark"] .ant-message-notice-content {
  background-color: #1f1f1f !important;
  border: 1px solid #303030 !important;
  color: #fff !important;
}
[data-theme="dark"] .ant-message-notice-content {
  background-color: #1f1f1f !important;
  border: 1px solid #303030 !important;
  color: #fff !important;
}

/* 暗黑模式下不同类型 message 的图标颜色 */
[data-theme="dark"] .ant-message-success .anticon {
  color: #52c41a !important;
}

[data-theme="dark"] .ant-message-error .anticon {
  color: #ff4d4f !important;
}

[data-theme="dark"] .ant-message-warning .anticon {
  color: #faad14 !important;
}

[data-theme="dark"] .ant-message-info .anticon {
  color: #1890ff !important;
}